package cn.mdmbct.douyin.data.service;

import cn.mdmbct.douyin.common.http.HttpExecutor;
import cn.mdmbct.douyin.common.service.BaseDyService;
import cn.mdmbct.douyin.common.storage.DyStorageManager;
import cn.mdmbct.douyin.data.service.interfaces.DyExternalDataService;
import cn.mdmbct.douyin.data.service.interfaces.UserDataService;

/**
 * @author mdmbct  mdmbct@outlook.com
 * @date 2021/3/18 16:17
 * @modified mdmbct
 * @since 1.0
 */
public class DyExternalDataServiceImpl extends BaseDyService implements DyExternalDataService {

    protected UserDataService userDataService;

    public DyExternalDataServiceImpl(DyStorageManager storageManager, HttpExecutor httpExecutor) {
        super(storageManager, httpExecutor);
    }

    @Override
    public UserDataService getUserDataService() {
        if (userDataService == null) {
            userDataService = new UserDataServiceImpl(storageManager, httpExecutor);
        }
        return userDataService;
    }



}
